package com.hk.commons.entity.order;

import com.hk.commons.utils.sys.DataHelper;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单合同
 */
@Entity
@Table(name = "t_order_contract")
public class OrderContract implements Serializable ,  Comparable<OrderContract>{
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 3892285267633435129L;

	@Id
	private Long id;

	/**
	 * 订单ID
	 */
	private Long orderId;


	/**
	 * 合同ID
	 */
	private Long contractID;

	/**
	 * 合同标题
	 */
	private String contractTitle;
	
	/**
	 * PDF版电子合同
	 */
	private String contractPDFUrl;


	/**
	 * HTML版电子合同
	 */
	private String contractHTMLUrl;
	

	/**
	 * 合同创建时间
	 */
	private Long cts;


	public String getContractHTMLUrl() {
		return contractHTMLUrl;
	}

	public void setContractHTMLUrl(String contractHTMLUrl) {
		this.contractHTMLUrl = contractHTMLUrl;
	}


	public Long getContractID() {
		return contractID;
	}

	public void setContractID(Long contractID) {
		this.contractID = contractID;
	}

	public String getContractPDFUrl() {
		return contractPDFUrl;
	}

	public void setContractPDFUrl(String contractPDFUrl) {
		this.contractPDFUrl = contractPDFUrl;
	}

	public String getContractTitle() {
		return contractTitle;
	}

	public void setContractTitle(String contractTitle) {
		this.contractTitle = contractTitle;
	}

	public Long getCts() {
		return cts;
	}

	public void setCts(Long cts) {
		this.cts = cts;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}


	@Override
	public int compareTo(OrderContract o) {
		return this.contractID.compareTo(o.contractID);
	}


	@Override
	public String toString() {
		return "OrderContract{" +
				"contractHTMLUrl='" + contractHTMLUrl + '\'' +
				", id=" + id +
				", orderId=" + orderId +
				", contractID='" + contractID + '\'' +
				", contractTitle='" + contractTitle + '\'' +
				", contractPDFUrl='" + contractPDFUrl + '\'' +
				", cts=" + cts +
				'}';
	}
}
